package com.s64.ssm.service;

import com.s64.ssm.entity.SysUser;
import com.s64.ssm.mapper.SysUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private SysUserMapper sysUserMapper;

    public List<SysUser> getAll() {
        return sysUserMapper.selectAll();
    }

    public void del(Integer id) {
        sysUserMapper.deleteByPrimaryKey(new Long(id));
    }
}
